package com.mxpio.erp.plm.service.impl;

import com.mxpio.erp.common.plm.entity.VEProjectDangerNum;
import com.mxpio.erp.common.plm.entity.VEProjectOverdue;
import com.mxpio.erp.common.plm.service.VEProjectDangerNumService;
import com.mxpio.erp.common.plm.service.VEProjectOverdueService;
import com.mxpioframework.jpa.JpaUtil;
import com.mxpioframework.jpa.lin.Linq;
import com.mxpioframework.jpa.query.Criteria;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class VEProjectDangerNumServiceImpl implements VEProjectDangerNumService {


    @Override
    @Transactional
    public List<VEProjectDangerNum> list(Criteria c) {
        return JpaUtil.linq(VEProjectDangerNum.class).where(c).list();
    }

    @Override
    @Transactional
    public Page<VEProjectDangerNum> listPage(Pageable pageAble, Criteria c) {
        return JpaUtil.linq(VEProjectDangerNum.class).where(c).paging(pageAble);
    }
}
